package vo 
{
	/**
	 * ...
	 * @author lgyu
	 */
	public class MapObjectVO
	{
		private var _itemId:int = 0
		private var _typeId:int = 0
		private var _positionX:int = 0
		private var _positionY:int = 0
		private var _rotation:int = 0

		public function MapObjectVO() 
		{
			
		}
		
		public function get itemId():int 
		{
			return _itemId;
		}
		
		public function set itemId(value:int):void 
		{
			_itemId = value;
		}
		
		public function get typeId():int 
		{
			return _typeId;
		}
		
		public function set typeId(value:int):void 
		{
			_typeId = value;
		}
		
		public function get positionX():int 
		{
			return _positionX;
		}
		
		public function set positionX(value:int):void 
		{
			_positionX = value;
		}
		
		public function get positionY():int 
		{
			return _positionY;
		}
		
		public function set positionY(value:int):void 
		{
			_positionY = value;
		}
		
		public function get rotation():int 
		{
			return _rotation;
		}
		
		public function set rotation(value:int):void 
		{
			_rotation = value;
		}
		
		public function toString():String 
		{
			return "[MapObjectVO itemId=" + itemId + " typeId=" + typeId + " positionX=" + positionX + " positionY=" + positionY + 
						" rotation=" + rotation + "]";
		}
		
		static public function toMVO(mapObj2:Object):MapObjectVO 
		{
			var mo:MapObjectVO = new MapObjectVO
			
				mo.itemId = mapObj2["itemId"];
				mo.typeId = mapObj2["typeId"];
				mo.positionX = mapObj2["positionX"]
				mo.positionY = mapObj2["positionY"]
				mo.rotation = mapObj2["rotation"]
				
			
			return mo;
		}
		
	}

}